import {request, upload} from '../utils/request.js';

/**
 * 获取token
 */
export const getToken = (code)=>{
  return request(`oauth/token/${code}`, 'GET');
}
/**
 * 获取产品分类
 */
export const listProductTypes = () => {
  return request(`v0/common/product-type/list`, 'GET');
}

export const uploadFile = (file, param) => {
  return upload(file, param);
}


